package com.ruoyi.ihome.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房间设施中间表对象 home_and_facility
 *
 * @author mage
 * @date 2024-08-14
 */

@Data
@AllArgsConstructor
public class HomeAndFacility extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long facilityId;
    /*设施*/


    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long houseId;

    private Facility facility;


    public HomeAndFacility() {
    }

    public HomeAndFacility(long serialVersionUID, Long id, Long facilityId, Long houseId, Facility facility) {
        this.id = id;
        this.facilityId = facilityId;
        this.houseId = houseId;
        this.facility = facility;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return facilityId
     */
    public Long getFacilityId() {
        return facilityId;
    }

    /**
     * 设置
     * @param facilityId
     */
    public void setFacilityId(Long facilityId) {
        this.facilityId = facilityId;
    }

    /**
     * 获取
     * @return houseId
     */
    public Long getHouseId() {
        return houseId;
    }

    /**
     * 设置
     * @param houseId
     */
    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    /**
     * 获取
     * @return facility
     */
    public Facility getFacility() {
        return facility;
    }

    /**
     * 设置
     * @param facility
     */
    public void setFacility(Facility facility) {
        this.facility = facility;
    }

    public String toString() {
        return "HomeAndFacility{serialVersionUID = " + serialVersionUID + ", id = " + id + ", facilityId = " + facilityId + ", houseId = " + houseId + ", facility = " + facility + "}";
    }
}
